$(function() {


 //基础功能

 $(".tab-list li").on("click",function(){
   $(this).parent().find("li").removeClass("tab-active");
   $(this).addClass("tab-active");
 })

 function changeInfoHeight() {
   var windowHeight=window.innerHeight
   || document.documentElement.clientHeight
   || document.body.clientHeight;

   var windowWidth = window.innerWidth
   || document.documentElement.clientWidth
   || document.body.clientWidth

   $(".zhgl-map-info").height(windowHeight-170);
   $(".zhgl-panel").height(windowHeight-170);
   $(".zhgl-panel").width(windowWidth-580);
   var contentHeight = windowHeight-170-40;
   $(".info-content").css("max-height",contentHeight+"px");
 }

 window.addEventListener("resize", function () {
  // 得到屏幕尺寸 (内部/外部宽度，内部/外部高度)
  changeInfoHeight();
}, false);

  changeInfoHeight();


  $(".info-content").mCustomScrollbar({
    theme:"minimal-dark",
    setTop:"0px",
  });

  $(".zhgl-search-button").on("click",function(){
      window.location.href = "search.html";
  })

})
